<%@ page contentType="text/html; charset=utf-8" %>
<%@ taglib prefix="tiles" uri="http://struts.apache.org/tags-tiles"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="c_rt" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fmt_rt" uri="http://java.sun.com/jstl/fmt_rt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql"%>
<%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml"%>
<%@ taglib prefix="x_rt" uri="http://java.sun.com/jstl/xml_rt"%>
<%@ taglib prefix="wr_fn" uri="http://njo.org/taglib/functions"%>
<c:import url="/common/javascript.jsp"/>

<script type="text/javascript">
<!--
    var field_types = ${wr_fn:toJsObject(fieldTypeList)};
    function type_change(v) {
        if (v=="") {
            document.f2.field_size.value="";
            document.f2.field_size.disabled=true;
        }
        field_types.each(function(pair, index) {
            if (pair["field_type"]==v) {
                if (pair["allow_has_size"]=="on") {
                  document.f2.field_size.disabled=false;
                } else {
                  document.f2.field_size.value="";
                  document.f2.field_size.disabled=true;
                }
            }
        });
    }
    
-->
</script>